package com.shejimoshi.抽象工厂模式.例子;

import com.shejimoshi.抽象工厂模式.common.Article;
import com.shejimoshi.抽象工厂模式.common.JavaArticle;
import com.shejimoshi.抽象工厂模式.common.JavaVideo;
import com.shejimoshi.抽象工厂模式.common.Video;

public class JavaCourseFactory implements CourseFactory {
    @Override
    public Video getVideo() {
        return new JavaVideo();
    }

    @Override
    public Article getArticle() {
        return new JavaArticle();
    }
}
